<ion-view class="bg">
  <ion-header-bar class="bar bar-positive">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear" nav-direction="back" ui-sref="outer">返回</button>
    <h3 class="title">中转单详情</h3>
  </ion-header-bar>
  <ion-content>
    <div ng-if="showloading" class="ion-spinner">
      <ion-spinner icon="lines" class="spinner-calm"></ion-spinner>
    </div>
    <ion-list class="myList" ng-if="showloading==false">
      <li class="item li" style="margin-bottom: 0;">
        <div>
          <i>中转单号</i>
          <i class="value">{{transDetail.TRANSFER_NO}}</i>
        </div>
        <div>
          <i>中转日期</i>
          <i class="value">{{transDetail.TRANSFER_DATE | date : "yyyy-MM-dd"}}</i>
        </div>
        <div>
          <i>中转单状态</i>
          <i class="value">{{transferStatus}}</i>
        </div>
        <div>
          <i>中转公司</i>
          <i class="value">{{transDetail.TRANSFER_COMPANY_NAME}}</i>
        </div>
        <div>
          <i>中转公司电话</i>
          <i class="value">{{transDetail.TRANSFER_PHONE}}</i>
        </div>
        <div>
          <i>车牌号</i>
          <i class="value">{{transDetail.VEHICLE_NO}}</i>
        </div>
        <div>
          <i>中转费</i>
          <i class="value">{{transDetail.TRANSFER_CHARGE | number:2}}</i>
        </div>
      </li>
      <div class="item item-input item-divider div">
        <img src="img/waybillNum.png" class="typeIcon" style="height: 25px;">
        <i class="dark">承运单信息</i>
      </div>
      <li class="item li" ng-repeat="data in transferDetailWaybill">
        <div>
          <i>承运单号</i>
          <i class="value" style="color: #ff9800">{{data.WAYBILL_NO}}</i>
        </div>
        <div>
          <i>承运日期</i>
          <i class="value">{{data.WAYBILL_DATE | date : "yyyy-MM-dd"}}</i>
        </div>
        <div>
          <i>货物名称</i>
          <i class="value">{{data.GOODS_NAME}}</i>
        </div>
        <div>
          <i>中转费</i>
          <i class="value" ng-if="data.TRANSFER_CHARGE!=null">{{data.TRANSFER_CHARGE | number:2}}元</i>
          <i class="value" ng-if="data.TRANSFER_CHARGE==null">0.00元</i>
        </div>
        <div>
          <i>运费垫付</i>
          <i class="value" ng-if="data.PAYMENT_FREIGHT!=null">{{data.PAYMENT_FREIGHT | number:2}}元</i>
          <i class="value" ng-if="data.PAYMENT_FREIGHT==null">0.00元</i>
        </div>
        <div>
          <i>到付</i>
          <i class="value" ng-if="data.TO_PAYMENT!=null">{{data.TO_PAYMENT | number:2}}元</i>
          <i class="value" ng-if="data.TO_PAYMENT==null">0.00元</i>
        </div>
        <div>
          <i>代收款</i>
          <i class="value" ng-if="data.AGENCY_FUND!=null">{{data.AGENCY_FUND | number:2}}元</i>
          <i class="value" ng-if="data.AGENCY_FUND==null">0.00元</i>
        </div>
      </li>
    </ion-list>
    <ion-infinite-scroll on-infinite="loadMore()" distance="1%" ng-if="hasNextPage()"></ion-infinite-scroll>
  </ion-content>
</ion-view>
